package com.linxianqin.springbootVue.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lxq
 * @version 1.0
 * @description: mybatis-plus 配置
 * @date 2020/12/15 11:30
 */
@Configuration
public class MybatisPlusConfig {
    /**
     * mybatis-plus 分页配置
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
